import { createRouter, createWebHistory } from "vue-router";
// 导入路由组件

// 定义路由配置
const routes = [
  {
    path: "/",
    name: "login",
    component: () => import("@/views/home/login.vue"),
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("@/views/home/index.vue"),
  },
  {
    path: "/second",
    name: "second",
    component: () => import("@/views/home/secondPage.vue"),
  },
];
// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes: routes,
});
// 导出路由实例
export default router;
